weekStr = "星期一星期二星期三星期四星期五星期六星期日"
weekld = eval(input("请输入星期数字(1-7):"))
pos = (weekld - 1)*3
print(weekStr[pos:pos+3])

weekStr = "一二三四五六日"
weekld = eval(input("请输入星期数字(1-7):"))
print("星期" + weekStr[weekld-1])

print("Y""\b""=")

str = "〇一二三四五六七八九十"
print(str[:3])

str = "〇一二三四五六七八九十"
print(str[1:8:2])

str = "〇一二三四五六七八九十"
print(str[::-1])

str = "AbCdEfGh"
print(str.lower())

str = "HongziYI"
print(str.upper())

str = "H,o,n,g,z,i,y,i"
print(str.split(","))

str = "a apple a day"
print(str.count("a"))

str = "Hongziyi"
print(str.replace("ziyi","keyin"))

str = "Hongziyi"
print(str.center(20,"@"))

str = "@12Hongziyi31@"
print(str.strip("@1231"))

str = "Hongziyi"
print(",".join("Hongziyi"))

str = "Hongziyi"
print("{0:=^20}".format('str'))

str = "Hongziyi"
print("{0:*>20}".format('str'))

str = "Hongziyi"
print("{:10}".format('str'))

str = "12345.6789"
print("{0:,.2f}".format(12345.6789))

str = "425"
print("{0:b},{0:c},{0:d},{0:o},{0:x},{0:X}".format(425))

str = 3.14
print("{0:e},{0:E},{0:f},{0:%}".format(3.14))

